Creating a Configuration Profile for FTP Server |
|
Before you begin this task: You must have the role of the FTP Admin.
To perform various file transfer operations, you must invoke the appropriate FTP SOAP Request, which requires the FTP server details for the request to be processed. Instead of specifying the details of an FTP server in every request, you can create a configuration profile of the FTP server. With the FTP Configurations Manager, you can create and store FTP configuration profiles in the XMLStore. These profiles comprise FTP server details such as name, description, server name, authentication, and connectivity details.
You can refer the name of the FTP configuration profile in the FTP SOAP Requests and aviod specifying the server details in every request.
- On CUSP > My Applications, click (FTP Configurations Manager). The FTP Configurations Manager window appears.
- Click and specify the details of the FTP server in the pane below.
- Click . A profile of FTP configuration details is created.
These details are stored as an FTP Configuration profile at XMLStore Explorer > Collection > Cordys > WCP > FTP > <ftpconfiguration>. Below is the sample configuration.<ftpconfiguration> <name>Microsoft_Public_FTP</name> <description>Microsoft FTP Server Configuration</description> <data> <server>ftp.microsoft.com</server> <port>21</port> <username>ftpuser</username> <password>ZnRwdXNlckBjb3JkeXMuY29t</password> <protocol>FTP</protocol> <transfermode type="Passive"> <externalipaddress/> <portrange> <from/> <to/> </portrange> </transfermode> <basepath>C:\Inetpub\ftproot</basepath> </data> </ftpconfiguration>
In the above example, Microsoft_Public_FTP is the name of the FTP configuration profile. You can use this information in a SOAP Request, as indicated in the below code snippet and need not define the FTP server details. When the SOAP request is invoked, these server details are fetched from the defined FTP configuration profile.
Note: You must refer the name of the FTP configuration profile within the <configuration> tag of the SOAP request.
<getListOfFiles xmlns="http://schemas.cordys.com/ftpconnector/1.1"> <configuration>Microsoft_Public_FTP</configuration> <notification-subject>FTP</notification-subject> <directory>\</directory> </getListOfFiles>
Note:
- To edit the details of an FTP configuration profile, select the configuration profile in the table. The details pane (at the bottom) is enabled for editing. Make the necessary changes and click (Save).
- To delete an FTP configuration profile, select the check box next to the name of the profile and click (Delete).